<script type="text/javascript">
           jQuery(document).ready(function(){
               // binds form submission and fields to the validation engine
               jQuery("#HojasrutaNuevotrabajoForm").validationEngine();
               jQuery("#fecha_inc" ).datepicker();
           });
 </script>
<div class="widget grid12">
    <div class="whead"><h6>EDICION DEL INSUMO </h6><div class="clear"></div></div>
    <?php echo $this->Form->create('Insumo', array('id' => "validate")); ?>
        <div class="formRow">
    <div class="formRow">
        <div class="grid3"><label>Nombre:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('nombre', array('id'=>'nomb', 'size'=>'50'));?>
        </div>

        <div class="grid3"><label>Precio de compra:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('preciocompra', array('id'=>'usu', 'size'=>'50',  'class'=>"input-text"));?>
        </div>
        <div class="clear"></div>
    </div>
    
    <div class="formRow">
        <div class="grid3"><label>Precio de venta:<span class="req">*</span></label></div>
        <div class="grid3">
            <td><?php echo $this->Form->text('precioventa', array('id'=>'dire', 'size'=>'50'));?></td>
        </div>

        <div class="grid3"><label>Cantidad total:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('cantidadtotal', array('size'=>'50', 'class'=>'input-text'));?>
        </div>
        <div class="clear"></div>
    </div>
    <div class="formRow">
        <div class="grid3"><label>Unidad de Medida :<span class="req">*</span></label></div>
        <div class="grid3">
           <?php echo $this->Form->select('unidade_id',$unidades2);?>
        </div>

        <div class="grid3"><label>Peso:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->select('medida_id',$medidas2);?>
        </div>
        <div class="clear"></div>
    </div> 
    <div class="formRow">
        <div class="grid3"><label>Categoria:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->select('categoria_id',$cate);?>
        </div>

        <div class="grid3"><label>Marca:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('marca', array('id'=>'usu', 'size'=>'50',  'class'=>"input-text"));?>
        </div>
        <div class="clear"></div>
    </div>
    <div class="formRow">
        <div class="grid3"><label>Codigo de barras:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('codigo_barra', array('id'=>'nomb', 'size'=>'50'));?>
        </div>

        <div class="grid3"><label>Lugar de almacenamiento:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->select('lugare_id',$lug)?>
        </div>
        <div class="clear"></div>
    </div>
    <div class="formRow">
        <div class="grid3"><label>Fecha vencimiento:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->text('fecha_vencimiento', array('id'=>'fecha_inc'));?>
        </div>

        <div class="grid3"><label>Observaciones:<span class="req">*</span></label></div>
        <div class="grid3">
            <?php echo $this->Form->textarea('observaciones', array('class'=>'input-text', 'cols'=>'70', 'rows'=>'3' ,'id'=>'validate3'));?>
        </div>
        <div class="clear"></div>
    </div>            
        </div>
</div>
<div class="actions-right">
<?php $options = array('label' => 'Editar Datos','class' => 'buttonS bGreen','id' => 'btEnvia');echo $this->Form->end($options);?> 
        <p></p>
        <?php echo $this->Html->link("Volver &raquo;", array('controller'=>'Facturas', 'action'=>'index'), array('class'=>'buttonS bLightBlue', 'escape' => FALSE)); ?>
</div>


